package com.activemanager.myHealthProfile;

import java.io.InputStream;

import com.example.android.navigationdrawerexample.R;
import com.example.android.navigationdrawerexample.R.drawable;
import com.example.android.navigationdrawerexample.R.id;
import com.example.android.navigationdrawerexample.R.layout;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

public class FifthFragment extends Fragment {

	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
	    View v = inflater.inflate(R.layout.q6, container, false);
	    
	    ImageView img = (ImageView) v.findViewById(R.id.imageView1);
		BitmapFactory.Options opt = new BitmapFactory.Options();
		opt.inPreferredConfig = Bitmap.Config.RGB_565;
		opt.inPurgeable = true;
		opt.inInputShareable = true;
		InputStream is = getActivity().getResources().openRawResource(
				R.drawable.u13_normal_qi);
		Bitmap bit = BitmapFactory.decodeStream(is, null, opt);
		img.setImageBitmap(bit);
	
	    return v;
	}

	public static FifthFragment newInstance(String text) {

	    FifthFragment f = new FifthFragment();
	    Bundle b = new Bundle();
	    b.putString("msg", text);

	    f.setArguments(b);

	    return f;
	}
}